Einhugur macOS Bridge plugin.

NSColor.ColorWithAlphaComponent Method

Creates a new color object that has the same color space and component values as the current color object, but the specified alpha component.

ColorWithAlphaComponent(
   alphaComponent as Double) as EinhugurMacOSBridge.NSColor

Parameters

alphaComponent
The opacity value of the new NSColor object.

Returns

EinhugurMacOSBridge.NSColor
The new NSColor object. If the receiver’s color space doesn’t include an alpha component, the receiver is returned.

Remarks

See Also

NSColor Class